import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import {RouterModule} from "@angular/router";
import { HttpModule } from '@angular/http';

import { OperatorComponent } from './operator/operator.component';
import { RoleComponent } from './role/role.component';
import { FuncComponent } from './func/func.component';
import { MenuComponent } from './menu/menu.component';
import { OrgComponent } from './org/org.component';
import { FuncgroupComponent } from './funcgroup/funcgroup.component';

@NgModule({
  imports: [
    CommonModule,
    RouterModule.forChild([
      { path: 'operator', component: OperatorComponent },
      { path: 'role', component: RoleComponent },
      { path: 'func', component: FuncComponent },
      { path: 'menu', component: MenuComponent },
      { path: 'org', component: OrgComponent },
      { path: 'funcgroup', component: FuncgroupComponent }
    ])
  ],
  declarations: [OperatorComponent, RoleComponent, FuncComponent, MenuComponent, OrgComponent, FuncgroupComponent]
})
export class SysModule { }
